
public class ReverseString {
	 public static void main(String args[])
	   {
	      String original="Sample String used to test";
	      String reverse = "";

	      int length = original.length();
	 
	      for ( int i = length - 1 ; i >= 0 ; i-- )
	         reverse = reverse + original.charAt(i);
	      System.out.println("Original String\n" + original);
	      System.out.println("Reverse String\n" + reverse);
	   }
}
/*Result
Original String
Sample String used to test
Reverse String
tset ot desu gnirtS elpmaS
*/